const Layout = () => import('@/layout/index.vue');

const memberDiscountRouter = {
  path: '/member-discount',
  component: Layout,
  meta: {
    alwaysShow: true,
    title: '会员折扣管理',
    icon: 'money',
    roles: ['admin', 'editor']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/memberDiscount/index.vue'),
      name: 'MemberDiscountList',
      meta: {
        title: '折扣策略列表',
        icon: 'list',
        roles: ['admin']
      }
    },
    {
      path: 'create',
      component: () => import('@/views/memberDiscount/create.vue'),
      name: 'MemberDiscountCreate',
      meta: {
        title: '新增折扣策略',
        icon: 'add',
        roles: ['admin'],
        hidden: true
      }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/memberDiscount/create.vue'),
      name: 'MemberDiscountEdit',
      meta: {
        title: '编辑折扣策略',
        icon: 'edit',
        roles: ['admin'],
        hidden: true
      }
    }
  ]
};

export default memberDiscountRouter;

